﻿using System;
using System.Linq;
using System.Collections.Generic;
using System.Text;
using System.Xml.Serialization;

namespace LinkedService.Mobile.ServiceEntities
{
   /// <summary>
  /// Represents a Job.
  /// </summary>
  [XmlRoot(Namespace = "", ElementName = "job", IsNullable = false)]
  [XmlType("job")]
  public class Job
  {
    #region Constructors
    /// <summary>
    /// Initializes a new instance of the <see cref="Job"/> class.
    /// </summary>
    public Job()
    {
    }
    #endregion

    #region Properties

    /// <summary>
    /// Gets or sets the identifier of the Job.
    /// </summary>
    [XmlElement("id")]
    public string Id
    {
      get;
      set;
    }

    /// <summary>
    /// Gets or sets the Position of the Job.
    /// </summary>
    [XmlElement("position")]
    public Position Position
    {
      get;
      set;
    }

    /// <summary>
    /// Gets or sets the Company of the Job.
    /// </summary>
    [XmlElement("company")]
    public Company Company
    {
      get;
      set;
    }

    /// <summary>
    /// Gets or sets the poster of the Job.
    /// </summary>
    [XmlElement("job-poster")]
    public Person Poster
    {
      get;
      set;
    }

    /// <summary>
    /// Gets or sets the site url of the Job.
    /// </summary>
    [XmlElement("site-job-request")]
    public Site JobSite
    {
      get;
      set;
    }

    #endregion
  }
}


